{{FOREACH message;[[messages]]}}
  <div class="alert alert-[[message.getVal('type')]]">
    [[message.getVal('message')]]
  </div>
{{ENDFOREACH}}